import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/recomment/rtstyle'
  },
  {
    path: '/comment',
    name: 'comment',
    component: () => import(/* webpackChunkName: "about" */ '../views/Conent.vue')
  },
  {
    path: '/recomment',
    name: 'Recomment',
    component: () => import(/* webpackChunkName: "about" */ '../views/Recomment.vue'),
    children:[
    {
      path: '/recomment/rtstyle',
      name: 'Gexi',
      component: () => import(/* webpackChunkName: "about" */ '../views/Recomment/Gexi.vue')
    },
    {
      path: '/recomment/songlist',

      component: () => import(/* webpackChunkName: "about" */ '../views/Recomment/SongList.vue')
    },
    {
      path: '/recomment/zhubo',

      component: () => import(/* webpackChunkName: "about" */ '../views/Recomment/Zhubo.vue')
    },
    {
      path: '/recomment/phang',

      component: () => import(/* webpackChunkName: "about" */ '../views/Recomment/Phang.vue')
    },
    {
      path: '/recomment/singer',

      component: () => import(/* webpackChunkName: "about" */ '../views/Recomment/Singer.vue')
    },
    {
      path: '/recomment/newMusic',

      component: () => import(/* webpackChunkName: "about" */ '../views/Recomment/NewMusic.vue')
    },
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
